package com.chinacoal.hr.levelapi.api.fallback;

import com.chinacoal.hr.levelapi.api.CcmsUserClient;
import com.chinacoal.hr.levelapi.entity.Users;
import com.chinacoal.hr.levelapi.util.CodeMsg;
import com.chinacoal.hr.levelapi.util.Result;
import org.springframework.stereotype.Component;

/**
 * @author: YunTao.Li
 * @create: 2019-12-17 09:56
 * @description:
 **/
@Component
public class CcmsUserClientFallback implements CcmsUserClient {
    public Result<Users> getUser(String name) {
        return Result.error(CodeMsg.FALLBACK);
    }
}
